﻿namespace EasyGo.Data.Dao
{
    using System.Data.SqlClient;
    using StructureMap;

    public abstract class SqlDao
    {
        protected SqlCommand GetStoredProcedureCommand(string text)
        {
            var unit = ObjectFactory.GetInstance<IUnitOfWork>();
            return (SqlCommand)unit.GetStoredProcedureCommand(text);
        }
    }
}
